import Axios from './api'
export function getLogin(){
    return Axios({
        url:"/index",
        method:"GET"
    })
}
export function getAdd(data){
    return Axios({
        url:"/add",
        method:"POST",
        data
    })
}
export function getEdit(data){
    return Axios({
        url:`/update/${data.id}`,
        method:"PUT",
        data
    })
}
export function getDel(data){
    return Axios({
        url:`/del/${data.id}`,
        method:"DELETE",
    })
}